package com.asw.springboot.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by hxq on 2017/5/18.
 */
@Component
@ConfigurationProperties(
        prefix = "redis.asw"
)
public class RedisProperties {

    private String password;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "RedisProperties{" +
            "password='" + password + '\'' +
                    '}';
    }
}
